import _axios from '@/littleu/plugin/axios'
class Product {
  async getProductsByCategory (id) {
    return _axios({
      method: 'get',
      url: `/product/category/${id}`
    })
  }

  async getProduct (id) {
    return _axios({
      method: 'get',
      url: '/product/' + id
    })
  }
}

export default new Product()
